var windowName = "categorySelect";
var Page
apiready = function(){
    onWindowShow(function () {
    })
    onWindowHide(function () {
    })
    console.log("index page is OK");
    Page = createVM("#Page",{
        //页面数据
        panel: ''
        ,show: true
        ,catShow: false
        ,subTitle:"全部"
        ,keyword:""
        ,location:""
        ,cur:-1
        ,cats:[]
    },{
        //页面方法
        "init":function () {
            var cats = getLocData("cacheCats");if (isTrue(cats)){Page.cats = cats;}
            this.location = location.href
            setTimeout(function () {
                Page.catShow = true
            },200)
        }
        ,scroll:function (item) {
            this.cur = item
            location.replace(this.location + "#item" + item);
        }
    })
    Page.init()
}